package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.tenant.BundleDTO;
import com.mrdeer.user.api.entity.Bundle;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:41
 */
@Mapper
public interface BundleConvert {

    BundleConvert INSTANCE = Mappers.getMapper(BundleConvert.class);

    BundleDTO entity2Dto(Bundle entity);

    Bundle dto2Entity(BundleDTO dto);

    List<BundleDTO> entityList2Dto(List<Bundle> bundles);
}
